package com.shyroke.daydayzhuanapi.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
public class AppDto {

    private Integer id;

    private String mark;

    private String inviteImg;

    private String inviteUrl;

    private String title;

    private String cover;

    private Date createTime;

    private Integer downCount;

    private Integer falseDownCount;

    private Integer offline;

    private Integer device;

    private String content;

    private String keyword;

    /**
     * 真实下载数
     */
    private Integer realDownCount;

    /**
     * 标签列表
     */
    private List<LabelDto> labelList = new ArrayList<>();

    private Date updateTime;

    private Integer createId;

    private String companyName;

    private Integer type;

    private String firstLableName;

    private String showDevice;

    private String createTime2;

    private String withdraw;

    public Integer getRealDownCount() {
        return (downCount==null?0:downCount)+(falseDownCount==null?0:falseDownCount);
    }
}